<?php
/**
 * The Database Interface
 *
 * user, perms, and thread are the only three php progs that need access
 **/

function openDbConn() {
  $db_name = 'sqlite:./nada.sq3';
  $db_user = null;
  $db_pass = null;
  $db_options = array();
  //$db_options = array( PDO::ATTR_PERSISTENT => true );

  $db = new PDO($db_name, $db_user, $db_pass, $db_options);
  $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
  return $db;
}
openDbConn();

// XXX this needs to be replaced or moved to util
function default_increment() {
 return 10;
}

// XXX this should really be in a util class
function clean( $string ) {
  return ($string);
}

?>
